![]() |
KCSetData |
||||
Header: | Keychain.h | Carbon status: | Under Evaluation | |
Sets or modifies the data stored in a keychain item.
OSStatus KCSetData ( KCItemRef item, UInt32 length, const void *data );
A reference to the keychain item whose data you wish to set.
The length of the data buffer pointed to by the data parameter.
A pointer to a buffer containing the data to be stored in this item. Before calling KCSetData, allocate enough memory for the buffer to hold the data you want to store.
A result code. The result code errKCInvalidItemRef indicates that the specified keychain item reference was invalid. The result code errKCDataTooLarge indicates that the data was too large for the supplied buffer. The result code errKCDataNotModifiable indicates that the data cannot be set for this item.
Available beginning with Keychain Manager 1.0.
Under evaluation for Carbon. Available in CarbonLib 1.0 and later when KeychainLib 1.0 or later is installed. Exported by CarbonLib 1.0 and later and by KeychainLib 1.0 and later.
© 2000 Apple Computer, Inc. — (Last Updated 4/14/2000)